package net.intellect.collectpro.util;

import java.util.Comparator;

import net.intellect.collectpro.objects.Cobro;

public class CobroPrestamoComparator implements Comparator<Cobro> {

	/**
	 * Ordena de mayor a menor
	 */
	public int compare(Cobro c1, Cobro c2) {  
	    return (int)(c2.getCobro__c().getSaldo_total_pr_stamo__c()-c1.getCobro__c().getSaldo_total_pr_stamo__c());  	
	}

  public boolean equals(Object o) {
	    return this == o;
	  }
}
